<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Examples</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
<script src="https://upcdn.b0.upaiyun.com/libs/jquery/jquery-2.0.2.min.js"></script>
<script type="text/javascript" src="../js-repo/downloader.js"></script>
</head>
<body>
请输入要导出的id(逗号,分割):<input id="ids" type="text" value="0e894e34070cc9ed362c800d667a86b8,097781b02bddcba69ea9110b60a47343"/><br/>
<label>手机号:</label><input id="mobile" type="text" name="mobile" value="18779714540"><br/>
<label>ids导出:</label><input type="radio" name="exportType" value="1" /><br/>
<label>条件导出:</label><input type="radio" name="exportType" value="2" /><br/>
<hr>
<font color="red">
	导出方式：<br/>
	1.ids导出: ids:0e894e34070cc9ed362c800d667a86b8,097781b02bddcba69ea9110b60a47343<br/>
	2.条件导出: mobile:18779714540
</font>
<br/>
<script type="text/javascript">
	function downloadExcel() {
		console.log('---execute start ~')
		console.log($('input[name="exportType"]:checked').val())
	    DownLoader.DownLoadFile({
	    	url: 'http://localhost:8084/app/user/exportUser2CXls',
			method:'GET',
			data:{
				ids: $('input[name="exportType"]:checked').val()==1?$('#ids').val():'',
				mobile: $('#mobile').val()
			}
		});
		console.log('---execute end ~')
	}
</script> 
<input type="button" value="点我下载Excel" onclick="downloadExcel()" />
   
</body>
</html>